package chixing.day18.synchronized_demo;

public class AccountTread extends Thread{
    private Account account;
    public AccountTread(Account account) {
        this.account = account;
    }
    public void run(){
        account.deposit(1);
        account.withdraw(1);
    }
}
